<template>
  <div>这是首页的子组件 - {{ count }}</div>
</template>

<script>
export default {
  computed: {
    count() {
      return this.$store.state.a.count;
    },
  },
};
</script>
